package book
import grails.test.*

class BookServiceIntegrationTests extends GrailsUnitTestCase 
{
	private book.BookService bookService = new book.BookService()
	private book.Book staticBook = bookService.getStaticBook()
	
    void testStaticBook() {
      assertEquals(staticBook.author, "Anynomous")
	  assertEquals(staticBook.category, BookCat.Science)
	  assertEquals(staticBook.description, "This is a test book")
	  assertEquals(staticBook.isbn, "ISBN 98-7654-321-0")
	  assertEquals(staticBook.language, "english")
	  assertEquals(staticBook.minGrade, 1)
	  assertEquals(staticBook.maxGrade, 2)
	  assertEquals(staticBook.title, "NoTitle")
    }
}
